using UnityEngine;

public class WinningsDisplayLayer : MonoBehaviour
{
	public UILabel place;

	public UILabel coins;

	public UILabel cash;

	public void UpdateWinnings(LeaderboardsAdapter.ClientPrize prize)
	{
		if (prize != null)
		{
			UITools.ChangeText(place, prize.name);
			UITools.ChangeText(coins, GGFormat.FormatWinnings(prize.coins));
			UITools.ChangeText(cash, GGFormat.FormatWinnings(prize.cash));
		}
		else
		{
			UITools.ChangeText(place, "No Winnings");
			UITools.ChangeText(coins, "0");
			UITools.ChangeText(cash, "0");
		}
	}
}
